package com.lanhai.webservice;

import com.lanhai.webservice.netty.NettyServer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class WebserviceApplication {

    public static void main(String[] args) throws InterruptedException {
        ConfigurableApplicationContext run =SpringApplication.run(WebserviceApplication.class, args);

        //启动netty
        NettyServer bean = run.getBean(NettyServer.class);
        bean.init();

    }

}
